package com.diana.service;

import com.baomidou.mybatisplus.service.IService;
import com.diana.entity.ScheduleJob;

import java.util.Map;

/**
 * <p>
 * 定时任务 服务类
 * </p>
 *
 * @author anzhi
 * @since 2019-11-11
 */
public interface ScheduleJobService extends IService<ScheduleJob> {

    String add(ScheduleJob scheduleJob);

    String update(ScheduleJob scheduleJob);

    String getInfo(Long jobId);

    String getList(Map map);

    String run(Long jobId);

    String deleteJob(Long jobId);

    String pauseJob(Long jobId);

    String resumeJob(Long jobId);
}
